﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Description;

namespace Host {
    class Program {
        static void Main(string[] args) {

           // Uri[] baseAddresess = new Uri[] { new Uri("http://localhost:8002/midominio") };

            Type t = typeof(WcfServiceLibrary1.MyService);
            //ServiceHost sv = new ServiceHost(t,baseAddresess);
            ServiceHost sv = new ServiceHost(t);
            //ServiceMetadataBehavior smb = new ServiceMetadataBehavior();
            //smb.HttpGetEnabled = true;
            //sv.Description.Behaviors.Add(smb);
            //WSHttpBinding binding = new WSHttpBinding();
            //sv.AddServiceEndpoint(typeof(WcfServiceLibrary1.IMyService), binding, "host");
            //sv.AddDefaultEndpoints();
            //sv.AddServiceEndpoint(typeof(IMetadataExchange), MetadataExchangeBindings.CreateMexHttpBinding(), "mex");
            sv.Open();
            Console.WriteLine("corriendo!!");
            Console.ReadLine();
            sv.Close();

        }
    }
}
